using System;
using System.Collections.Generic;
using System.Text;

namespace AppExtensions.Helpers
{
    public class EventHelper
    {
        public static void RaiseEvent<TEventArgs>(object sender, EventHandler<TEventArgs> eventHandler, TEventArgs args) where TEventArgs : EventArgs
        {
            if (eventHandler != null)
            {
                eventHandler(sender, args);
            }
        }
    }
}
